<template>
  <div>
    <!-- 导航栏 -->
    <nav>
      <div class="nav">
        <div class="container">
          <div class="nav_first">
            <div class="nav_logo">
              <router-link to="/">
                <img src="../../public/logo.png" alt="" />
              </router-link>
            </div>
            <!-- 导航栏列表 -->
            <div class="nav_ul">
              <ul>
                <li id="item1" @mouseover="asd" @mouseout="dsa"></li>
                <li id="item1" @mouseover="asd">
                  <router-link to="/zooplay">
                    <span>动物乐园</span></router-link
                  >
                </li>
                <li>
                  <router-link to="/zooyanyi"
                    ><span>游园演艺</span></router-link
                  >
                </li>
                <li>
                  <router-link to="/activity"
                    ><span>活动优惠</span></router-link
                  >
                </li>
                <li>
                  <router-link to="/research"
                    ><span>研学互动</span></router-link
                  >
                </li>
                <li>
                  <router-link to=""><span>美味餐饮</span></router-link>
                </li>
                <li>
                  <router-link to="/travel"><span>计划行程</span></router-link>
                </li>
              </ul>
            </div>

            <!-- 立即购票 -->
            <div class="nav_shop">
              <router-link to="/consoul">
                <img src="../../public/piao.png" alt="" />
                <span>立即购票</span>
              </router-link>
            </div>
            <!-- 语言 -->
            <div class="nav_chinese">
              <div>中文</div>
              <img src="../../public/jiantouhei.png" alt="" />

              <!-- 语言下拉菜单 -->
              <div class="nav_selt">
                <a href="#" class="item"><div>中文</div></a>
                <a href="#" class="item"><div>English</div></a>
                <a href="#" class="item"><div>한국어</div></a>
                <a href="#" class="item"><div>日語</div></a>
              </div>
            </div>
          </div>
        </div>
      </div>
    </nav>

    <!-- 导航栏下拉 -->
    <div class="head_next" @mouseover="asd" @mouseout="dsa">
      <!-- @mouseout="dsa" -->
      <div class="next_container">
        <!-- 第一模块 -->
        <div class="next_1">
          <ol>
            <li>
              <a href="#">车行区<i></i></a>
            </li>
            <li>
              <a href="#">步行区<i></i></a>
            </li>
          </ol>
        </div>
        <!-- 第二模块 -->
        <div class="next_2">
          <h4>探索动物世界</h4>
          <ol>
            <li><img src="../../public/i1.png" alt="" /><span>灵长类</span></li>
            <li><img src="../../public/i2.png" alt="" /><span>鸟类</span></li>
            <li>
              <img src="../../public/i3.png" alt="" /><span>哺乳动物</span>
            </li>
            <li>
              <img src="../../public/i4.png" alt="" /><span>爬行动物</span>
            </li>
          </ol>
          <a href="#">了解更多</a>
        </div>
        <!-- 第三模块 -->
        <div class="next_3">
          <a href="#">
            <h3>看非洲猴</h3>
            <img src="../../public/hou1s.jpg" alt="" />
          </a>
          <a href="#">
            <h3>动物地图</h3>
            <img src="../../public/hou2s.jpg" alt="" />
          </a>
        </div>
        <!-- 第四模块 -->
        <div class="next_4">
          <img src="../../public/zhong.png" alt="" />
          <div>
            <h3>开闭园时间</h3>
            <strong>9:30-16:30</strong>
          </div>
          <div>
            <h3>检票截止时间</h3>
            <strong>9:30-16:30</strong>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    methods: {
      asd() {
        var a = document.querySelector(".head_next");
        a.style.display = "block";
      },
      dsa() {
        var a = document.querySelector(".head_next");
        a.style.display = "none";
      },
    },
  };
</script>

<style scoped>
  * {
    padding: 0;
    margin: 0;
  }
  .container {
    margin: 0 auto;
    width: 1200px;
  }
  li {
    list-style: none;
  }
  a {
    text-decoration: none;
  }
  .nav {
    background: url(../../public/zstop.jpg);
    width: 98vw;
    height: 68px;
    /* background-size: cover; */
  }
  /* 全部 */
  .nav_first {
    display: flex;
    position: relative;
    justify-content: space-between;
  }
  .nav_first > .nav_logo img {
    margin: 7px 25px;
    width: 200px;
    height: 55px;
  }
  /* 导航栏列表 */
  .nav_first > .nav_ul {
    padding: 0 15px 0 20px;
  }
  .nav_first > .nav_ul > ul {
    display: flex;
    width: 600px;
    /* width: 100vw; */
    margin-left: -20px;
  }
  .nav_first > .nav_ul > ul > li {
    line-height: 65px;
    padding: 0 10px;
    /* text-align: center; */
    cursor: pointer;
    color: #fff4e0;
    font-size: 18px;
    font-weight: bold;
    position: relative;

    /* width: 16.6%; */
  }
  /* 悬停li */
  .nav_first > .nav_ul > ul > li:hover > span {
    color: #ffae00;
  }
  .nav_first > .nav_ul > ul > li:after {
    content: "";
    width: 0;
    height: 3px;
    background: #ffae00;
    position: absolute;
    bottom: -1%;
    left: 50%;
    transition: all 0.3s;
  }
  .nav_first > .nav_ul > ul > li:hover:after {
    left: 0%;
    width: 100%;
  }
  .nav_first > .nav_ul > ul > li span {
    color: #fff4e0;
    font-size: 18px;
    font-weight: bold;
    /* margin: 0 10px; */
  }

  /* 立即购票 */
  .nav_first > .nav_shop {
    /* position: absolute; */
    /* position: fixed; */
    /* text-align: center; */
    background-color: #e38600;
    padding: 0px 30px;
    border-radius: 10px;
    margin: 10px 0 15px 0;
    margin-right: 5%;
  }
  .nav_first > .nav_shop a {
    text-decoration: none;
    white-space: nowrap;
  }
  /* 设置图片 */
  .nav_first > .nav_shop a img {
    vertical-align: middle;
    margin-right: 4px;
  }
  /* 设置字体 */
  .nav_first > .nav_shop span {
    font-size: 18px;
    color: #fff4e0;
    font-weight: bold;
    line-height: 49px;
    display: inline-block;
  }
  /* 语言 */
  .nav_first > .nav_chinese {
    /* position: absolute; */
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: -8%;
    height: 100%;
    white-space: nowrap;
    /* line-height: 66px; */
    position: relative;
  }
  .nav_first > .nav_chinese > div:nth-child(1) {
    color: #fff4e0;
    font-size: 18px;
    margin: 0 18px;
    line-height: 70px;
  }
  .nav_first > .nav_chinese > img {
    margin-right: 25px;
    vertical-align: middle;
  }
  /* 下拉 */
  .nav_selt {
    position: absolute;
    top: 97%;
    left: -30%;
    background-color: #e38600;
    height: 200px;

    display: none;
  }
  .nav_chinese:hover .nav_selt {
    box-shadow: 0px 5px 8px #333;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    display: block;
    -webkit-animation: nav_selt 1s cubic-bezier(0.5, 0.885, 0.32, 1.275) both;
    animation: nav_selt 1s cubic-bezier(0.5, 0.885, 0.32, 1.275) both;
  }
  .nav_chinese .nav_selt a:hover div {
    color: #ffae00;
  }
  .nav_chinese .nav_selt div {
    margin: 20px 45px;
    font-size: 18px;
    color: #000;
    display: flex;
    justify-content: center;
  }

  @-webkit-keyframes nav_selt {
    0% {
      -webkit-transform: perspective(400px) rotateX(90deg);
      transform: perspective(400px) rotateX(90deg);
      -webkit-animation-timing-function: ease-in;
      animation-timing-function: ease-in;
      transform-origin: top;
      opacity: 0;
    }
    40% {
      -webkit-transform: perspective(400px) rotateX(-10deg);
      transform: perspective(400px) rotateX(-10deg);
      -webkit-animation-timing-function: ease-in;
      animation-timing-function: ease-in;
      transform-origin: top;
    }
    60% {
      -webkit-transform: perspective(400px) rotateX(10deg);
      transform: perspective(400px) rotateX(10deg);
      transform-origin: top;
      opacity: 1;
    }
    80% {
      -webkit-transform: perspective(400px) rotateX(-5deg);
      transform: perspective(400px) rotateX(-5deg);
      transform-origin: top;
    }
    to {
      -webkit-transform: perspective(400px);
      transform: perspective(400px);
      transform-origin: top;
    }
  }

  @keyframes nav_selt {
    0% {
      -webkit-transform: perspective(400px) rotateX(90deg);
      transform: perspective(400px) rotateX(90deg);
      -webkit-animation-timing-function: ease-in;
      animation-timing-function: ease-in;
      transform-origin: top;
      opacity: 0;
    }
    40% {
      -webkit-transform: perspective(400px) rotateX(-10deg);
      transform: perspective(400px) rotateX(-10deg);
      -webkit-animation-timing-function: ease-in;
      animation-timing-function: ease-in;
      transform-origin: top;
    }
    60% {
      -webkit-transform: perspective(400px) rotateX(10deg);
      transform: perspective(400px) rotateX(10deg);
      transform-origin: top;
      opacity: 1;
    }
    80% {
      -webkit-transform: perspective(400px) rotateX(-5deg);
      transform: perspective(400px) rotateX(-5deg);
      transform-origin: top;
    }
    to {
      -webkit-transform: perspective(400px);
      transform: perspective(400px);
      transform-origin: top;
    }
  }
</style>

<style scoped>
  .head_next {
    position: absolute;
    background-color: #ffae00;
    /* display: flex; */
    background: url(../../public/wen1.jpg);
    /* width: 100vw; */
    /* float: left;s */
    width: 100vw;
    top: 8%;
    height: 500px;
    display: none;
  }
  .head_next > .next_container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
  }
  .head_next > .next_container a {
    color: #000;
  }
  .head_next > .next_container > .next_1 {
    width: 200px;
    height: 400px;
    padding-left: 0;
    border-right: 1px solid #d6cca7;
  }
  .head_next > .next_container > .next_1 > ol {
    padding: 30px 0 0 5.516px;
  }
  .head_next > .next_container > .next_1 li a {
    line-height: 60px;
    font-size: 15px;
    border-bottom: 1px solid #c8c8c8;
    font-weight: bold;
  }
  .head_next > .next_container > .next_1 li a i {
    width: 43px;
    height: 17px;
    /* background-color: url(../../public/icon.png); */
    background-color: #000;
    display: block;
  }
  .head_next > .next_container > .next_1 li:hover {
    cursor: pointer;
  }
  .head_next > .next_container > .next_1 li:hover a {
    color: #ffae00;
  }
  .head_next > .next_container > .next_2 {
    width: 778px;
    /* height: 100%; */
    border-right: 1px solid #d6cca7;
    /* text-align: center; */
  }

  .head_next > .next_container > .next_2 > ol li {
    display: flex;
    display: inline-block;
    padding-top: 20px;
  }
  .head_next > .next_container > .next_2 > h4 {
    color: #b87a30;
    font-weight: bold;
    margin-top: 40px;
    font-size: 24px;
    margin-left: 50px;
  }
  .head_next > .next_container > .next_2 img {
    margin: 0 50px 0 50px;
  }
  .head_next > .next_container > .next_2 li:hover {
    cursor: pointer;
  }
  .head_next > .next_container > .next_2 li:hover span {
    color: #ffae00;
  }
  .head_next > .next_container > .next_2 span {
    display: block;
    font-size: 14px;
    text-align: center;
  }
  .head_next > .next_container > .next_2 > a {
    width: 200px;
    text-align: center;
    display: block;
    color: #fff;
    background-color: #d27600;
    font-size: 22px;
    font-weight: bold;
    /* background: url(../../public/); */
    line-height: 50px;
    margin-left: 50px;
    margin-top: 30px;
    border-radius: 10px;
  }

  .head_next > .next_container > .next_3 {
    width: 235px;
    height: 400px;
    border-right: 1px solid #d6cca7;
    text-align: center;
  }
  .head_next > .next_container > .next_3 h3 {
    color: #b87a30;
    font-weight: bold;
    margin: 40px 0 10px 0;

    font-size: 24px;
  }
  .head_next > .next_container > .next_3 img {
    margin: 0 45px;
  }
  .head_next > .next_container > .next_3 > a:hover h3,
  img {
    cursor: pointer;
  }
  .head_next > .next_container > .next_4 {
    width: 280px;
    height: 40px;
    padding: 20px 0 0 65px;
  }
  .head_next > .next_container > .next_4 img {
    margin-top: 10px;
  }
  .head_next > .next_container > .next_4 > div > h3 {
    font-size: 16px;
    color: #707070;
    margin: 20px 0 10px 0;
    font-weight: 500;
  }
  .head_next > .next_container > .next_4 > div > strong {
    display: block;
    font-size: 17px;
    margin-top: 6px;
    font-weight: bold;
    color: #707070;
  }
</style>
<style scoped>
  * {
    padding: 0;
    margin: 0;
  }
  .container {
    margin: 0 auto;
    width: 1200px;
  }
  li {
    list-style: none;
  }
  a {
    text-decoration: none;
  }
  .nav {
    background: url(../../public/zstop.jpg);
    width: 99vw;
    height: 68px;
    /* background-size: cover; */
    z-index: 999;
  }
  /* 全部 */
  .nav_first {
    display: flex;
    position: relative;
    justify-content: space-between;
    z-index: 444;
  }
  .nav_first > .nav_logo img {
    margin: 7px 25px;
    width: 200px;
    height: 55px;
  }
  /* 导航栏列表 */
  .nav_first > .nav_ul {
    padding: 0 15px 0 20px;
  }
  .nav_first > .nav_ul > ul {
    display: flex;
    width: 600px;
    /* width: 100vw; */
    margin-left: -20px;
  }
  .nav_first > .nav_ul > ul > li {
    line-height: 65px;
    padding: 0 10px;
    /* text-align: center; */
    cursor: pointer;
    color: #fff4e0;
    font-size: 18px;
    font-weight: bold;
    position: relative;

    /* width: 16.6%; */
  }
  /* 悬停li */
  .nav_first > .nav_ul > ul > li:hover > span {
    color: #ffae00;
  }
  .nav_first > .nav_ul > ul > li:after {
    content: "";
    width: 0;
    height: 3px;
    background: #ffae00;
    position: absolute;
    bottom: -1%;
    left: 50%;
    transition: all 0.3s;
  }
  .nav_first > .nav_ul > ul > li:hover:after {
    left: 0%;
    width: 100%;
  }
  .nav_first > .nav_ul > ul > li span {
    color: #fff4e0;
    font-size: 18px;
    font-weight: bold;
    /* margin: 0 10px; */
  }

  /* 立即购票 */
  .nav_first > .nav_shop {
    /* position: absolute; */
    /* position: fixed; */
    /* text-align: center; */
    background-color: #e38600;
    padding: 0px 30px;
    border-radius: 10px;
    margin: 10px 0 15px 0;
    margin-right: 5%;
  }
  .nav_first > .nav_shop a {
    text-decoration: none;
    white-space: nowrap;
  }
  /* 设置图片 */
  .nav_first > .nav_shop a img {
    vertical-align: middle;
    margin-right: 4px;
  }
  /* 设置字体 */
  .nav_first > .nav_shop span {
    font-size: 18px;
    color: #fff4e0;
    font-weight: bold;
    line-height: 49px;
    display: inline-block;
  }
  /* 语言 */
  .nav_first > .nav_chinese {
    /* position: absolute; */
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: -8%;
    height: 100%;
    white-space: nowrap;
    /* line-height: 66px; */
    position: relative;
  }
  .nav_first > .nav_chinese > div:nth-child(1) {
    color: #fff4e0;
    font-size: 18px;
    margin: 0 18px;
    line-height: 70px;
  }
  .nav_first > .nav_chinese > img {
    margin-right: 25px;
    vertical-align: middle;
  }
  /* 下拉 */
  .nav_selt {
    position: absolute;
    top: 97%;
    left: -30%;
    background-color: #e38600;
    height: 200px;

    display: none;
  }
  .nav_chinese:hover .nav_selt {
    box-shadow: 0px 5px 8px #333;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    display: block;
    -webkit-animation: nav_selt 1s cubic-bezier(0.5, 0.885, 0.32, 1.275) both;
    animation: nav_selt 1s cubic-bezier(0.5, 0.885, 0.32, 1.275) both;
  }
  .nav_chinese .nav_selt a:hover div {
    color: #ffae00;
  }
  .nav_chinese .nav_selt div {
    margin: 20px 45px;
    font-size: 18px;
    color: #000;
    display: flex;
    justify-content: center;
  }

  @-webkit-keyframes nav_selt {
    0% {
      -webkit-transform: perspective(400px) rotateX(90deg);
      transform: perspective(400px) rotateX(90deg);
      -webkit-animation-timing-function: ease-in;
      animation-timing-function: ease-in;
      transform-origin: top;
      opacity: 0;
    }
    40% {
      -webkit-transform: perspective(400px) rotateX(-10deg);
      transform: perspective(400px) rotateX(-10deg);
      -webkit-animation-timing-function: ease-in;
      animation-timing-function: ease-in;
      transform-origin: top;
    }
    60% {
      -webkit-transform: perspective(400px) rotateX(10deg);
      transform: perspective(400px) rotateX(10deg);
      transform-origin: top;
      opacity: 1;
    }
    80% {
      -webkit-transform: perspective(400px) rotateX(-5deg);
      transform: perspective(400px) rotateX(-5deg);
      transform-origin: top;
    }
    to {
      -webkit-transform: perspective(400px);
      transform: perspective(400px);
      transform-origin: top;
    }
  }

  @keyframes nav_selt {
    0% {
      -webkit-transform: perspective(400px) rotateX(90deg);
      transform: perspective(400px) rotateX(90deg);
      -webkit-animation-timing-function: ease-in;
      animation-timing-function: ease-in;
      transform-origin: top;
      opacity: 0;
    }
    40% {
      -webkit-transform: perspective(400px) rotateX(-10deg);
      transform: perspective(400px) rotateX(-10deg);
      -webkit-animation-timing-function: ease-in;
      animation-timing-function: ease-in;
      transform-origin: top;
    }
    60% {
      -webkit-transform: perspective(400px) rotateX(10deg);
      transform: perspective(400px) rotateX(10deg);
      transform-origin: top;
      opacity: 1;
    }
    80% {
      -webkit-transform: perspective(400px) rotateX(-5deg);
      transform: perspective(400px) rotateX(-5deg);
      transform-origin: top;
    }
    to {
      -webkit-transform: perspective(400px);
      transform: perspective(400px);
      transform-origin: top;
    }
  }
</style>

<style scoped>
  .head_next {
    position: absolute;
    background-color: #ffae00;
    /* display: flex; */
    background: url(../../public/wen1.jpg);
    /* width: 100vw; */
    /* float: left;s */
    z-index: 333;
    width: 99vw;
    top: 7%;
    height: 500px;
    display: none;
  }
  .head_next > .next_container {
    width: 1200px;
    margin: 0 auto;
    display: flex;
  }
  .head_next > .next_container a {
    color: #000;
  }
  .head_next > .next_container > .next_1 {
    width: 200px;
    height: 400px;
    padding-left: 0;
    border-right: 1px solid #d6cca7;
  }
  .head_next > .next_container > .next_1 > ol {
    padding: 30px 0 0 5.516px;
  }
  .head_next > .next_container > .next_1 li a {
    line-height: 60px;
    font-size: 15px;
    border-bottom: 1px solid #c8c8c8;
    font-weight: bold;
  }
  .head_next > .next_container > .next_1 li a i {
    width: 43px;
    height: 17px;
    /* background-color: url(../../public/icon.png); */
    background-color: #000;
    display: block;
  }
  .head_next > .next_container > .next_1 li:hover {
    cursor: pointer;
  }
  .head_next > .next_container > .next_1 li:hover a {
    color: #ffae00;
  }
  .head_next > .next_container > .next_2 {
    width: 778px;
    /* height: 100%; */
    border-right: 1px solid #d6cca7;
    /* text-align: center; */
  }

  .head_next > .next_container > .next_2 > ol li {
    display: flex;
    display: inline-block;
    padding-top: 20px;
  }
  .head_next > .next_container > .next_2 > h4 {
    color: #b87a30;
    font-weight: bold;
    margin-top: 40px;
    font-size: 24px;
    margin-left: 50px;
  }
  .head_next > .next_container > .next_2 img {
    margin: 0 50px 0 50px;
  }
  .head_next > .next_container > .next_2 li:hover {
    cursor: pointer;
  }
  .head_next > .next_container > .next_2 li:hover span {
    color: #ffae00;
  }
  .head_next > .next_container > .next_2 span {
    display: block;
    font-size: 14px;
    text-align: center;
  }
  .head_next > .next_container > .next_2 > a {
    width: 200px;
    text-align: center;
    display: block;
    color: #fff;
    background-color: #d27600;
    font-size: 22px;
    font-weight: bold;
    /* background: url(../../public/); */
    line-height: 50px;
    margin-left: 50px;
    margin-top: 30px;
    border-radius: 10px;
  }

  .head_next > .next_container > .next_3 {
    width: 235px;
    height: 400px;
    border-right: 1px solid #d6cca7;
    text-align: center;
  }
  .head_next > .next_container > .next_3 h3 {
    color: #b87a30;
    font-weight: bold;
    margin: 40px 0 10px 0;

    font-size: 24px;
  }
  .head_next > .next_container > .next_3 img {
    margin: 0 45px;
  }
  .head_next > .next_container > .next_3 > a:hover h3,
  img {
    cursor: pointer;
  }
  .head_next > .next_container > .next_4 {
    width: 280px;
    height: 40px;
    padding: 20px 0 0 65px;
  }
  .head_next > .next_container > .next_4 img {
    margin-top: 10px;
  }
  .head_next > .next_container > .next_4 > div > h3 {
    font-size: 16px;
    color: #707070;
    margin: 20px 0 10px 0;
    font-weight: 500;
  }
  .head_next > .next_container > .next_4 > div > strong {
    display: block;
    font-size: 17px;
    margin-top: 6px;
    font-weight: bold;
    color: #707070;

    font-size: 24px;
  }
  .head_next > .next_container > .next_3 img {
    margin: 0 45px;
  }
  .head_next > .next_container > .next_3 > a:hover h3,
  img {
    cursor: pointer;
  }
  .head_next > .next_container > .next_4 {
    width: 280px;
    height: 40px;
    padding: 20px 0 0 65px;
  }
  .head_next > .next_container > .next_4 img {
    margin-top: 10px;
  }
  .head_next > .next_container > .next_4 > div > h3 {
    font-size: 16px;
    color: #707070;
    margin: 20px 0 10px 0;
    font-weight: 500;
  }
  .head_next > .next_container > .next_4 > div > strong {
    display: block;
    font-size: 17px;
    margin-top: 6px;
    font-weight: bold;
    color: #707070;
  }
</style>
